package com.community.zhihuishequ.utils;

/**
 * Created by Rick on 17/11/13.
 *
 */

public final class TextUtil {
    public static String emptyIfNull(String text) {
        return text == null ? "" : text;
    }

    /**
     * 判断String是否空
     *
     * @param str 检测字符串
     * @return 是否为空
     */
    public static boolean isStrEmpty(String str) {
        return str == null || str.trim().length() <= 0;
    }
}
